<?php

class defaultComponents extends sfComponents
{
  public function executeIllustration(sfWebRequest $request)
  {
    $files = array_filter(scandir(sfConfig::get('sf_web_dir').'/images/cui'), 'Check::hasPngExtension');
    $file = $files[array_rand($files)];
    $this->picture = $file;
    $this->name = basename($file, '.png');
  }
}